﻿using System;
using BestEasyCMS.Framework.Domain;
using NPoco;

namespace BestEasyCMS.Model.Security
{
    [TableName("tb_Sec_ResourceInRole")]
    [PrimaryKey("Id")]
    [Serializable]
    public class ResourceInRole : EntityBase<long>, IAggregateRoot
    {
        /// <summary>
        /// 角色ID
        /// </summary>
        public long RoleId { get; set; }
        /// <summary>
        /// 资源ID
        /// </summary>
        public long ResourceId { get; set; }
        [ResultColumn]
        public Resource Resources { get; set; }

        protected override void Validate()
        {
            throw new NotImplementedException();
        }
    }
}
